<?php
	if(!isset($_GET["s"]) or ($_GET["s"] == "")){
		header("Location: ".$_SERVER["REQUEST_URI"]."main/");
		exit;
	}

	if(isset($_GET["s"])){
		if(isset($_GET["x"]) and file_exists("modules/".$_GET["m"]."_".$_GET["s"]."_".$_GET["x"].'.inc.php')){
			include "modules/".$_GET["m"]."_".$_GET["s"].'_'.$_GET["x"].'.inc.php';
			exit;
		}elseif(file_exists("modules/".$_GET["m"]."_".$_GET["s"].'.inc.php')){
			include "modules/".$_GET["m"]."_".$_GET["s"].'.inc.php';
			exit;
		}else{
			echo "error...";
		}
	}
	include 'modules/home.inc.php';
	exit;
?>